import cv2
import imageio
import numpy as np

if __name__ == '__main__':
    pic = '/home/alpha/1.gif'

    img = imageio.imread(open(pic, 'rb'))

    # img = np.array(img)
    # print(len(img))
    print(img.shape)
    cv2.imwrite('/home/alpha/test.jpg', img)
    cv2.imshow('img', img)

    cv2.waitKey(0)
    cv2.destroyAllWindows()
